import java.util.Random;

/**
 * Created by dllo on 18/4/2.
 */
public class Question01 {
    public static void main(String[] args) {
        Random random = new Random();
        int arr[] = new int[10];
        for (int i = 0; i < arr.length; i++) {
            int a = random.nextInt(20);
            arr[i] = a;
            System.out.println(arr[i]);
        }
        System.out.println("----------");

        for (int i = 0; i < arr.length; i++) {
            if (arr[i] % 2 == 0) {
                System.out.println(arr[i]);
            }


        }


    }
}
